package com.sx.wechat.shiro;

import com.sx.core.model.Information;

import java.io.Serializable;

/**
 * 授权用户信息
 */
public class InformationPrincipal implements Serializable {

    private String id;
    private String name;

    private static final long serialVersionUID = 1L;

    public InformationPrincipal() {
    }

    public InformationPrincipal(Information operator) {
        this.id=operator.getId();
        this.name=operator.getName();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}